<article class="module width_3_quarter">
<header>
			<h3 class="tabs_involved"><?php echo (isset($id)) ? 'Update Category' : 'Create Category' ?></h3>
</header>
<div class="module_content">



<?php echo validation_errors('<p class="error">'); ?>


<?php
   
   
echo form_open((isset($id)) ? "category/edit/".$id : "category/create");

echo form_fieldset();
echo form_label('Name', 'name');
echo form_input('name', set_value('name',isset($category['name']) ? $category['name'] : '' ));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('Name Clean', 'name_clean');
echo form_input('name_clean', set_value('name_clean',isset($category['name_clean']) ? $category['name_clean'] : '' ));
echo form_fieldset_close(); 

echo form_fieldset();
echo form_label('Enabled', 'enabled');
echo form_checkbox('enabled', '', (isset($category['enabled']) && $category['enabled']==1 ) ? (boolean)$category['enabled'] : '' );
echo form_fieldset_close(); 



?>

<div class="submit_link">
<input type="submit" value="<?php echo (isset($id)) ? 'Update Category' : 'Create Category' ?>" class="alt_btn" />					
</div>


<?php
echo form_fieldset_close(); 

?>




</div>

</article>